const app=getApp();
Page({
  data: {
    campus_announcement:[]
  },

  onLoad: function (options) {
    wx.request({
      url: `${app.globalData.baseurl}campus_announcement`,
      method:'GET',
      success:(res)=>{
        if(res.statusCode==200){
          this.setData({
            campus_announcement:res.data
          });
          console.log(this.data.campus_announcement);
        }
      },
      fail:(err)=> {
        console.log('error!');
      }
    })
  },

})